/**
 * 
 */
package com.java.service.impl;

import java.util.List;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.java.entity.Good;
import com.java.mapper.GoodMapper;
import com.java.service.GoodService;

/**
* @author Kidney
* 创建时间：2019年2月17日 上午12:49:56
* Description:
*/
/**
 * @author KIDNEY
 *
 */

@Service("GoodServiceImpl")
public class GoodServiceImpl implements GoodService{

	@Autowired
	private GoodMapper gm;
	/* (non-Javadoc)
	 * @see com.java.service.GoodService#deleteByPrimaryKey(java.lang.Integer)
	 */
	@Override
	public int deleteByPrimaryKey(Integer goodId) {
		// TODO Auto-generated method stub
		return gm.deleteByPrimaryKey(goodId);
	}

	/* (non-Javadoc)
	 * @see com.java.service.GoodService#insert(com.java.entity.Good)
	 */
	@Override
	public int insert(Good record) {
		// TODO Auto-generated method stub
		return gm.insert(record);
	}

	/* (non-Javadoc)
	 * @see com.java.service.GoodService#insertSelective(com.java.entity.Good)
	 */
	@Override
	public int insertSelective(Good record) {
		// TODO Auto-generated method stub
		return gm.insertSelective(record);
	}

	/* (non-Javadoc)
	 * @see com.java.service.GoodService#selectByPrimaryKey(java.lang.Integer)
	 */
	@Override
	public Good selectByPrimaryKey(Integer goodId) {
		// TODO Auto-generated method stub
		return gm.selectByPrimaryKey(goodId);
	}

	/* (non-Javadoc)
	 * @see com.java.service.GoodService#updateByPrimaryKeySelective(com.java.entity.Good)
	 */
	@Override
	public int updateByPrimaryKeySelective(Good record) {
		// TODO Auto-generated method stub
		return gm.updateByPrimaryKeySelective(record);
	}

	/* (non-Javadoc)
	 * @see com.java.service.GoodService#updateByPrimaryKey(com.java.entity.Good)
	 */
	@Override
	public int updateByPrimaryKey(Good record) {
		// TODO Auto-generated method stub
		return gm.updateByPrimaryKey(record);
	}

	/* (non-Javadoc)
	 * @see com.java.service.GoodService#selectByCondition(com.java.entity.Good)
	 */
	@Override
	public List<Good> selectByCondition(Good record) {
		// TODO Auto-generated method stub
		return gm.selectByCondition(record);
	}

	/* (non-Javadoc)
	 * @see com.java.service.GoodService#getPaged(int, int)
	 */
	@Override
	public List<Good> getPaged(int pageSize, int pageNum) {
		// TODO Auto-generated method stub
		return gm.getPaged(pageSize, pageNum);
	}

	/* (non-Javadoc)
	 * @see com.java.service.GoodService#count()
	 */
	@Override
	public int count() {
		// TODO Auto-generated method stub
		return gm.count();
	}

	/* (non-Javadoc)
	 * @see com.java.service.GoodService#selectAll()
	 */
	@Override
	public List<Good> selectAll() {
		// TODO Auto-generated method stub
		return gm.selectAll();
	}

}
